﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Vertica.Data.VerticaClient;

namespace Hp.Vertica.Client.Internal
{
    public class VerticaDataType_Timestamp : VerticaDataTypeWithPrecision
    {
        public VerticaDataType_Timestamp() { }
        public VerticaDataType_Timestamp(Int32 precision) : base(precision) { }


        public override string Name
        {
            get { return "TIMESTAMP"; }
        }


        public override int MinPrecision
        {
            get { return 0; }
        }

        public override int MaxPrecision
        {
            get { return 6; }
        }

        public override int DefaultPrecision
        {
            get { return 0; }
        }
        public override VerticaType VerticaType
        {
            get { return VerticaType.DateTime; }
        }
    }
}
